#ifndef MULTI_PRINT_H
#define MULTI_PRINT_H
#include <cstring>
#include <iostream>
#include <typeinfo>

template <typename T> std::ostream &print(std::ostream &os, const T &t) {
  // const char *i = "i";
  // if (strcmp(typeid(T).name(), i) == 0)
  //   std::cout << "int\n" << std::endl;
  return os << t << "\n";
}
template <typename T, typename... args>
std::ostream &print(std::ostream &os, const T &t, const args &... rest) {
  // const char *i = "i";
  // if (typeid(T).name() == i)
  //   std::cout << "int\n" << std::endl;
  os << t << ",   ";
  // 加不加return 都行，最好加上，函数完整
  return print(os, rest...);
}

#endif